package com.wanhe.base.model.holder;


import com.wanhe.base.model.base.SallOutDish;

import java.util.HashMap;

/**
 * 估清菜品缓存
 * Created by Administrator on 2016/6/14.
 */
public class SallOutHolder extends HashMap<String, SallOutDish> {
    private static SallOutHolder ourInstance;

    public synchronized static SallOutHolder getInstance() {
        if (ourInstance == null){
            ourInstance = new SallOutHolder();
        }
        return ourInstance;
    }

    private SallOutHolder() {
    }

    public void release() {
        ourInstance.clear();
        ourInstance = null;
    }
}
